export default {
    data() {
      return {
        list:[],
        dividend:0,
      };
    },
  
    mounted() {},
  
    created(){
      if (!localStorage.getItem("uid")) {
        this.$router.push(this.fun.getUrl("member"));
        return
      }
      $http.post("HuanNiuJiuji.dividendInfo",{
          uid: localStorage.getItem("uid"),
      },"加载中").then(res=>{
        if(res.result == 1){
          this.dividend = res.data.dividend
        }
      })
      this.getList();
  
    },
  
    methods: {
      getList(){
        $http.post("HuanNiuJiuji.dividendList",{
          uid: localStorage.getItem("uid"),
          type:2
        },"加载中").then(res=>{
          if(res.result == 1){
            this.list = res.data
          }
          console.log(res);
        })
      }
    }
  };